#include <wx/panel.h>
#include <list>
#include <wx/dcgraph.h>
#include <wx/dcclient.h>

class lineChart : public wxPanel
{
public:
	lineChart(wxWindow* parent, wxSize wSize);
	void update();
	struct pos { double X; double Y; };
	std::list<pos> pointList1, pointList2;
	wxColor line1Color, line2Color;
private:
	void onPaint(wxPaintEvent& event);
	void DrawLine(wxGCDC& gdc);
	void DrawBackground(wxGCDC& gdc);
	double xOffset, yOffset, xScale, yScale, winX, winY;

	wxDECLARE_EVENT_TABLE();
};

